package com.xiaoma.tpo.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xiaoma.tpo.baseDao.BaseDaoImpl;
import com.xiaoma.tpo.domain.AdVisit;
import com.xiaoma.verbal.baseDao.DefaultRowMapper;
@Repository
public class AdVisitDao extends BaseDaoImpl<AdVisit>{


	public List<Object> querySql(AdVisit adCount) {
		String sql = "select id, count, ad_id , position_id, platform_guid"
				+ " from ad_visit"
				+ " where ad_id = "+adCount.getAdId();
		List<Object> lAdVisits = jdbcTemplate.query(sql, new DefaultRowMapper<AdVisit>(AdVisit.class, this.getNameHandler()));
		return lAdVisits;
	}

	
}
